<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@	page import="com.dao.Word,jspTools.*"%>
<!DOCTYPE html>
<html>
<head>
<jsp:useBean id="user" scope="session" class="jspTools.Test" />
<jsp:setProperty name="user" property="*" />
<meta charset="UTF-8">
<title>result</title>
<link rel="stylesheet" type="text/css" href="result.css" />
</head>
<body>
	<%
		String resultString = request.getParameter("result");
		String[] resultStringArray = resultString.split(",");
		boolean[] result = new boolean[resultStringArray.length];
		int index=0;
		for(String x : resultStringArray){
			if(x.equals("1")){
				result[index]=true;
			}
			else{
				result[index]=false;
			}
			index++;
		}
		Test t = (Test)session.getAttribute("test");
		int mark=t.getFinalMark(result);
	%>
	<div id="app" class="full-height">
		<div>
			<div class="result-page">

				<div class="size-block">
					<div class="app-intro-header">
						<img
							src="https://media-image1.baydn.com/storage_media_image/yfqwok/d4f802c153b11357683cac9777262eae.821da8d292b3d915912e40cbdbf75ebb.png">
						<span>「英语词汇测试网」</span>
						<ul class="app-goodness">
							<li><a href="index.jsp">首页</a></li>
							<li><a href="test.jsp">测试</a></li>
							<li><a href="#">联系我们</a></li>
						</ul>
					</div>
					<div class="size-info">
						<img src="./img/touxiang.png"> <span class="nickname">尚未登录</span>
					</div>
					<div class="overCount">
						<span class="text mt15">此次你测试的词汇量约为<%=mark%></span> <span
							class="size-num"></span> <span class="text mt15">个</span>
					</div>
					<div class="level-wrap">
						<span class="text mt15">判断你的级别为</span>
						<div class="level">入门</div>
						<span class="text mt15">级别</span>
						<div class="level-desc">从背单词开始，你正逐渐了解一门新的语言，加油！</div>
					</div>
				</div>

			</div>
		</div>
	</div>

</body>
</html>